package com.luo.chengrui.module.sa.convert.datapermission;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.datapermission.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.datapermission.DataPermissionItemDO;

/**
 * 数据权限项，每一项对应一个业务权限场景 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface DataPermissionItemConvert {

    DataPermissionItemConvert INSTANCE = Mappers.getMapper(DataPermissionItemConvert.class);

    DataPermissionItemDO convert(DataPermissionItemCreateReqVO bean);

    DataPermissionItemDO convert(DataPermissionItemUpdateReqVO bean);

    DataPermissionItemRespVO convert(DataPermissionItemDO bean);

    List<DataPermissionItemRespVO> convertList(List<DataPermissionItemDO> list);

    PageResult<DataPermissionItemRespVO> convertPage(PageResult<DataPermissionItemDO> page);

    List<DataPermissionItemExcelVO> convertList02(List<DataPermissionItemDO> list);

}
